package com.taoist_awei.blog.core;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.UUID;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClassifyEntity {
    private String classifyId;
    private String classifyName;
    private Integer articleNum = 0;
    private String fatherId;

    public ClassifyEntity(String classifyName,
                          String fatherId) {

        this.classifyId = UUID.randomUUID().toString();
        this.classifyName = classifyName;
        this.fatherId = fatherId;
    }

    public ClassifyEntity() { }
}
